package org.example.utlis;

import java.text.SimpleDateFormat;
import java.util.Date;

public class TimeUtils {
    public static String getCurrentDay() {
        SimpleDateFormat df = new SimpleDateFormat("YYYYMMdd");
        Date date = new Date();
        System.out.println(df.format(date));
        return df.format(date);
    }
    public static String getCurrentTime() {
        SimpleDateFormat df = new SimpleDateFormat("MM-dd HH:mm:ss.SSS");
        Date date = new Date();
        return df.format(date);
    }

    public static String getCurrentTimeForFileName() {
        SimpleDateFormat df = new SimpleDateFormat("YYYYMMdd-HH-mm-ss");
        Date date = new Date();
        return df.format(date);
    }
}
